import request from '@/utils/request'

// 查询用户陪护需求列表
export function listCarerequest(query) {
  return request({
    url: '/system/carerequest/list',
    method: 'get',
    params: query
  })
}

// 查询用户陪护需求详细
export function getCarerequest(requestId) {
  return request({
    url: '/system/carerequest/' + requestId,
    method: 'get'
  })
}

// 新增用户陪护需求
export function addCarerequest(data) {
  return request({
    url: '/system/carerequest',
    method: 'post',
    data: data
  })
}

// 修改用户陪护需求
export function updateCarerequest(data) {
  return request({
    url: '/system/carerequest',
    method: 'put',
    data: data
  })
}

// 删除用户陪护需求
export function delCarerequest(requestId) {
  return request({
    url: '/system/carerequest/' + requestId,
    method: 'delete'
  })
}
